<?php

namespace addons\qingdongams\validate;

use think\Validate;

class Aftermarket extends Validate {
	/**
	 * 验证规则
	 */
	protected $rule = [
		'create_staff_id' => 'require|number',
		'title'           => 'require|max:50',
		'type_ids'        => 'max:64',
		'product_ids'     => 'max:64',
	];
	/**
	 * 提示消息
	 */
	protected $message = [];
	/**
	 * 字段描述
	 */
	protected $field = [
		'create_staff_id' => '员工',
		'title'           => '标题',
		'type_ids'        => '所属标签',
		'product_ids'     => '关联产品',

	];
	/**
	 * 验证场景
	 */
	protected $scene = [
		'create' => [
			'create_staff_id',
			'title',
			'type_ids',
			'product_ids',
		],
		'edit'   => [
			'title',
			'type_ids',
			'product_ids',
		],
	];
}
